package com.hlkj.pay;

import java.security.Security;
import java.util.TimeZone;

import org.bouncycastle.jce.provider.BouncyCastleProvider;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableAspectJAutoProxy(exposeProxy = true)
@ServletComponentScan
@EnableScheduling
@EnableAsync
public class PayApplication {
	
	public static void main(String[] args) {
		TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
		Security.addProvider(new BouncyCastleProvider());
		System.out.println("Default TimeZone: " + TimeZone.getDefault().getID()); // 输出当前时区
		SpringApplication.run(PayApplication.class, args);
	}
	
}
